package com.hq.service.impl;

import com.hq.mapper.GuideMapper;
import com.hq.model.Guide;
import com.hq.model.Passenger;
import com.hq.service.GuideService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


/**
 * 导游
 */
@Service
public class GuideServiceImpl implements GuideService {
    @Resource
    private GuideMapper guideMapper;

    @Override
    public Guide selectMe(String username) {
        return  guideMapper.selectMe(username);
    }

    @Override
    public int updateMe(Guide guide) {
        return  guideMapper.updateMe(guide);
    }

    @Override
    public List<Passenger> findPassenger(String name) {
        return guideMapper.findPassenger(name);
    }
}
